package com.fx.device.request.device;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class DeviceMaintenanceUpdateRequest {

    @Min(value = 0,message = "保养记录id 不能为空")
    private Integer id;

    @NotBlank(message = "设备编号 不能为空")
    @Size(max = 64, min = 1, message = "设备名称 长度1-64位之间")
    private String maintenancePlanNo;

    @NotBlank(message = "保养人 不能为空")
    @Size(max = 32, min = 1, message = "保养人 长度1-64位之间")
    private String maintenancePerson;

    @NotBlank(message = "保养结果 不能为空")
    @Size(max = 32, min = 1, message = "规格型号 长度1-64位之间")
    private String maintenanceResult;


    @Min(value = 0,message = "保养时间不能为空")
    private Long maintenanceTime;


    private Integer imageBeforeMaintenanceId;
    private Integer imageAfterMaintenanceId;

    private Integer isDelete = 0;

    @Size(max = 255, min = 0, message = "备注 长度1-255位之间")
    private String remark; // (选填)

}
